package java_flow_contral;

import java.util.Scanner;

public class Demo03if_else_if {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入成绩:");
        int score = scanner.nextInt();
        if (score == 100){
            System.out.println("满分");
        } else if  (90 <=  score && score < 100 ){
            System.out.println("A");
        }else if  (80 <=  score && score < 90 ){
                System.out.println("B");
        }else if  (70 <=  score && score < 80 ){
            System.out.println("C");
        }else if  (60 <=  score && score < 70 ){
            System.out.println("D");
        }
        else
            System.out.println("E");

        scanner.close();
    }

}